package STUDENT.LETRUNGHIEU.GENERICS_EXERCISES.objects;

public class Book {
	private int bookID, bookYear;
	private String bookName, bookAuthor, bookKind;
	
	public Book(int bookID, int bookYear, String bookName, String bookAuthor, String bookKind) {
		this.bookID = bookID;
		this.bookYear = bookYear;
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookKind = bookKind;
	}
	public int getBookID() {
		return bookID;
	}
	public void setBookID(int bookID) {
		this.bookID = bookID;
	}
	public int getBookYear() {
		return bookYear;
	}
	public void setBookYear(int bookYear) {
		this.bookYear = bookYear;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getBookAuthor() {
		return bookAuthor;
	}
	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}
	public String getBookKind() {
		return bookKind;
	}
	public void setBookKind(String bookKind) {
		this.bookKind = bookKind;
	}
	public String toString(){
		String result = "Book info: "
				+ "\n- ID \t\t:" + this.getBookID()
				+ "\n- Name  \t:" + this.getBookName()
				+ "\n- Year  \t:" + this.getBookYear()
				+ "\n- Author \t:" + this.getBookAuthor()
				+ "\n- Kind of Book \t:" + this.getBookKind();
		return result;
	}
}
